package com.tinem.platform.client.data;

import com.tinem.platform.module.pojo.vo.data.ConstellationInfoRes;
import com.tinem.platform.module.pojo.vo.data.ConstellationInfoVO;
import com.tinem.platform.module.pojo.vo.data.ConstellationVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: platform
 * @description: ${description}
 * @author: eden#can
 * @Slogan: 没有所谓失败，除非你不再尝试
 * @date: 2021-12-28 17:24
 **/
@FeignClient(value = "platform-cloud-service-data", contextId = "platform-cloud-service-data.constellationClient")
public interface ConstellationClient {

    @PostMapping("/constellation/getConstellations.api")
    @ResponseBody
    Object getConstellations( @RequestBody ConstellationVO req);

    @PostMapping("/constellation/getConstellationInfo.api")
    @ResponseBody
    ConstellationInfoRes getConstellationInfo(@Validated @RequestBody ConstellationInfoVO req);
}
